import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'
import index from '../views/index.vue'
import fengjie from '../views/fengjie.vue'
import mahjong from '../views/mahjong.vue'

const router = createRouter({
  // history:  createWebHistory(import.meta.env.BASE_URL || '/'),
  history:  createWebHashHistory(import.meta.env.BASE_URL || '/'),
  routes: [
    {
      path: '/',
      name: 'index',
      component: index,
    },
    {
      path: '/fengjie',
      name: 'fengjie',
      component: fengjie,
    },
    {
      path: '/mahjong',
      name: 'mahjong',
      component: mahjong,
    }
  ],
})

export default router
